﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RSTAi.Platform.GrpcService.Models
{
    [Table("ProductStep")]
    public class ProductStep
    {
        /// <summary>
        /// 流程号
        /// </summary>
        [Key]
        public long ProductStepNo { get; set; }
        /// <summary>
        /// 流程名称
        /// </summary>
        
        [Required]
        public string ProductStepName { get; set; }=string.Empty;

        /// <summary>
        /// 产品号码
        /// </summary>
        public long ProductNo { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string? ProductName { get; set; }
        /// <summary>
        /// 输入值
        /// </summary>
        public string? Input { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int Step { get; set; }

        /// <summary>
        /// X轴位置
        /// </summary>
        public string X { get; set; } = string.Empty;

        /// <summary>
        /// Y轴位置
        /// </summary>
        public string Y { get; set; } = string.Empty;

        /// <summary>
        /// 流程参数
        /// </summary>
        public string Parameter { get; set; } = string.Empty;

        /// <summary>
        /// and / or 关联的流程
        /// </summary>
        public string UnionId { get; set; } = string.Empty;
    }
}
